<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('rd_file_playback_video', function (Blueprint $table) {
            $table->comment('预警录像回放');
            $table->bigIncrements('id');
            $table->string('file_url', 255)->nullable()->comment('录像文件地址');
            $table->string('yj_data_id', 128)->nullable()->comment('关联的预警数据id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('rd_file_playback_video');
    }
};